<template>
  <div>
       <mc-drawer-iframe :refreshWhileOpen="false" title="ff" :visible.sync="drawerVisible" :src="href" mck1="a" :mcv1="input"></mc-drawer-iframe>
       <el-input v-model="input"></el-input>
       <el-button @click="print">打印</el-button>
       <el-button @click="change">改变</el-button>
       <el-button @click="open">打开</el-button>
  </div>
</template>

<script>
import McDrawerIframe from "./components/McDrawerIframe";

export default {
    data(){
      return {
        href:"http://www.csdn.net",
        input:"",
        drawerVisible:false
      }
    },
    components:{
      McDrawerIframe
    },
    methods:{
        print(){
            console.log(this.form)
        },
      open(){
        this.drawerVisible = true;
      },
        change(){
            //this.form.userName = false;
            this.href = "http://www.csdn.net";
        }
    }
}
</script>

<style>

</style>
